#include <bits/stdc++.h>
using namespace std;
#define int long long

const double db = 1e-4;
const int val = 23333333;
const double sh = 11625907.5798;

signed main()
{
	ios::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
		
	for (int i = 0; i < val / 2; i++)
	{
		int k = val - i;
		double sum = -1.0 * i * i / val * log2(1.0 * i / val) - 1.0 * k * k / val * log2(1.0 * k / val);
		if (abs(sh - sum) <= db)
		{
			cout << i << endl;
			break;
		}
	}
	return 0;
}